home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
CSUBR.LZH
/
GETINT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1985-11-17
|
288b
|
18 lines
#include "stdio.h"
/*******************************************************/
getint(fp)
FILE *fp; /* File to process */
/*
* Read two binary bytes and treat them as reverse 2-byte number.
*/
{
char c;
c = fgetc(fp);
return(c+(256*fgetc(fp)));
}